home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / bin / forum / loc < prev    next >
Text File  |  1996-11-11  |  976b  |  32 lines

  1. #!/bin/csh
  2. #
  3. #video/x-sgi-movie-loc; movieplayer -nofork -v `head -1 %s`
  4. #audio/x-mpeg-loc; playsound `head -1 %s`
  5.  
  6.   if (-e /tmp/snt_debug) then
  7.    echo $0
  8.    foreach x ($*)
  9.     echo $x
  10.    end
  11.   endif
  12.  
  13.   set base = `basename $4 loc`
  14.   set dir  = `dirname $4`
  15.   if (-e /tmp/snt_debug) echo base=$base dir=$dir
  16.  
  17. if (`expr $4 : ^file:`) then
  18.   set file = `echo $dir/$base | sed -e 's/file://'`
  19.   if (-e /tmp/snt_debug) echo $2 $file
  20.                               $2 $file
  21. else
  22.   echo 'Unble to access this file locally, use the Copy to Disk" button.'
  23.   exit 1
  24.   if (-e /tmp/snt_debug) echo netscape -remote "saveAs(/usr/tmp/$base)" $dir/$base
  25.                               netscape -remote "saveAs(/usr/tmp/$base)" $dir/$base
  26.   if (-e /tmp/snt_debug) echo $2 /usr/tmp/$base
  27.                               $2 /usr/tmp/$base
  28.   if (-e /tmp/snt_debug) echo $2 "if -e /usr/tmp/$base rm /usr/tmp/$base"
  29.                                  if (-e /usr/tmp/$base) rm /usr/tmp/$base
  30. endif
  31.  
  32.